<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/common/common.jsp" %>
<html>
<head>
    <meta charset="utf-8"/>
    <title>厅干部平时考核管理系统</title>
</head>
<body>
<div class="date_pop" id="fksz_pop" style="display: block">
    <div class="khrw_pop" style="display: block">
        <div class="row">>按部门</div>
        <div class="row">
            <div class="row_lf">反馈方式</div>
            <div class="row_rt">
                <div class="row_rt_main">
                    <div name="bm_fkfs" val="0" class="checkbox <c:if test="${khfk.bmfkfs=='0'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">月度</div>
                    <div name="bm_fkfs" val="1" class="checkbox <c:if test="${khfk.bmfkfs=='1'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">季度</div>
                    <div name="bm_fkfs" val="2" class="checkbox <c:if test="${khfk.bmfkfs=='2'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">半季度</div>
                    <div name="bm_fkfs" val="3" class="checkbox <c:if test="${khfk.bmfkfs=='3'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">年度</div>
                    <div name="bm_fkfs" val="4" class="checkbox <c:if test="${khfk.bmfkfs=='4'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">不反馈</div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="row_lf">反馈内容</div>
            <div class="row_rt">
                <div class="row_rt_main">
                    <div name="bm_fknr" val="0" class="checkbox <c:if test="${khfk.bmfknr=='0'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">领导评鉴</div>
                    <div name="bm_fknr" val="1" class="checkbox <c:if test="${khfk.bmfknr=='1'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">领导评语</div>
                    <div name="bm_fknr" val="2" class="checkbox <c:if test="${khfk.bmfknr=='2'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">领导评分</div>
                    <div name="bm_fknr" val="3" class="checkbox <c:if test="${khfk.bmfknr=='3'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">考核表</div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="row_lf">反馈节点</div>
            <div class="row_rt">
                <div class="row_rt_main">
                    <div name="bm_fkjd" val="0" class="checkbox <c:if test="${khfk.bmfkjd=='0'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">领导确认</div>
                    <div name="bm_fkjd" val="1" class="checkbox <c:if test="${khfk.bmfkjd=='1'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">人事汇总</div>
                </div>
            </div>
        </div>
        <div class="row">>按人员</div>
        <div class="row">
            <div class="row_lf">反馈方式</div>
            <div class="row_rt">
                <div class="row_rt_main">
                    <div name="ry_fkfs" val="0" class="checkbox <c:if test="${khfk.ryfkfs=='0'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">月度</div>
                    <div name="ry_fkfs" val="1" class="checkbox <c:if test="${khfk.ryfkfs=='1'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">季度</div>
                    <div name="ry_fkfs" val="2" class="checkbox <c:if test="${khfk.ryfkfs=='2'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">半季度</div>
                    <div name="ry_fkfs" val="3" class="checkbox <c:if test="${khfk.ryfkfs=='3'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">年度</div>
                    <div name="ry_fkfs" val="4" class="checkbox <c:if test="${khfk.ryfkfs=='4'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">不反馈</div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="row_lf">反馈内容</div>
            <div class="row_rt">
                <div class="row_rt_main">
                    <div name="ry_fknr" val="0" class="checkbox <c:if test="${khfk.ryfknr=='0'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">领导评鉴</div>
                    <div name="ry_fknr" val="1" class="checkbox <c:if test="${khfk.ryfknr=='1'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">领导评语</div>
                    <div name="ry_fknr" val="2" class="checkbox <c:if test="${khfk.ryfknr=='2'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">领导评分</div>
                    <div name="ry_fknr" val="3" class="checkbox <c:if test="${khfk.ryfknr=='3'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">考核表</div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="row_lf">反馈节点</div>
            <div class="row_rt">
                <div class="row_rt_main">
                    <div name="ry_fkjd" val="0" class="checkbox <c:if test="${khfk.ryfkjd=='0'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">领导确认</div>
                    <div name="ry_fkjd" val="1" class="checkbox <c:if test="${khfk.ryfkjd=='1'}">checkbox_hov</c:if>"></div>
                    <div class="checkbox_text">人事汇总</div>
                </div>
            </div>
        </div>
    </div>

</div>

<script type="text/javascript">
    $(document).ready(function () {
        //单选框
        $(".row_rt_main .checkbox").click(function() {
            $(this).addClass("checkbox_hov").siblings(".checkbox").removeClass("checkbox_hov");
        });
        //单选框结束
    });

    function submitForm(){
        var bm_fkfs = $("[name=bm_fkfs].checkbox_hov").attr("val");
        var bm_fknr = $("[name=bm_fknr].checkbox_hov").attr("val");
        var bm_fkjd = $("[name=bm_fkjd].checkbox_hov").attr("val");
        var ry_fkfs = $("[name=ry_fkfs].checkbox_hov").attr("val");
        var ry_fknr = $("[name=ry_fknr].checkbox_hov").attr("val");
        var ry_fkjd = $("[name=ry_fkjd].checkbox_hov").attr("val");


        $.ajax({
            type:"post",
            dataType:"json",
            url:"<c:url value='/task/saveKhfk.json'/>",
            data:{
                bmfkfs: bm_fkfs,
                bmfknr: bm_fknr,
                bmfkjd: bm_fkjd,
                ryfkfs: ry_fkfs,
                ryfknr: ry_fknr,
                ryfkjd: ry_fkjd
            },
            success:function(data){
//                parent.refresBootTable();
                parent.showMessage("操作成功！");
                var index = parent.layer.getFrameIndex(window.name);
                parent.layer.close(index);
            }
        })

    }
</script>
</body>

</html>